namespace Xmef.Engine
{
    using System;
    using Xmef.Interfaces;

    [Serializable, AttributeUsage(AttributeTargets.Class, Inherited=false, AllowMultiple=false)]
    public abstract class PluginAttribute : Attribute, IPlugin
    {
        private readonly string _name;
        private readonly string _value;

        protected PluginAttribute()
        {
        }

        protected PluginAttribute(string name, string value)
        {
            this._name = name;
            this._value = value;
        }

        public string Name
        {
            get
            {
                return this._name;
            }
        }

        public string Value
        {
            get
            {
                return this._value;
            }
        }
    }
}

